package classes.view.component
{
	
	import flash.text.TextField;
	
	public class PlayerNode 
	{
		
		
		private var numText :TextField; 
		
		
		
		private var _id : String; 
		private var _nickname : String; 
		private var _rank : int; 
		
		private var _pos : int; 
		private var _onGame : Boolean; 
		
		
		public function PlayerNode($userid: String, $name:String)
		{
			super();
			_id = $userid;
			_nickname = $name;
			_onGame = true; 
			
		}
		
		public function get user_id():String
		{
			return _id;
		}
		
		public function get nickname():String
		{
			return _nickname;
		}
		
		
		public function set rank($num:int):void
		{
			_rank = $num; 
			
		}
		
		public function get rank():int
		{
			return _rank; 
		}
		
		
		public function set position($num:int):void
		{
			_pos = $num; 
			
		}
		
		public function get position():int
		{
			return _pos; 
		}
		
		public function set isOnGame($bool:Boolean):void
		{
			_onGame = $bool; 
			
		}
		
		public function get isOnGame():Boolean
		{
			return _onGame; 
		}
		
		
		
		
	}
}